Name | Type | Description |
Blocked | Boolean | Gets the blocked state of the PE sensor |
Distance | Number | Gets the distance along the parent transfer path the PE sensor is located |
Length | Number | Gets/Sets the PE sensor Length, only in Free Position mode |
BeamColor | String | New in V7.0. Gets/Sets the name of the color of the beam |
IndicatorsColor | String | New in V7.0. Gets/Sets the name of the color of the indicators |
BeamVisible | Boolean | New in V7.0. Gets/Sets the visibility of the beam |
IndicatorsVisible | Boolean | New in V7.0. Gets/Sets the visibility of the indicators |
OnProductBlocking
Invoked when the sensor ‘Blocked’ property value changes to true
Note: This event does not support multiple subscription. Previous subscription will be lost if subscribe twice.
Callback Signature
void xxxxxxxxxxxxxxxxx (sender: object, product: Product);
Name | Type | Description |
sender | Object | The object associated with the changed property |
product | Product | The blocking product item |
OnProductUnblocking
Invoked when the sensor ‘Blocked’ property value changes to false
Note: This event does not support multiple subscription. Previous subscription will be lost if subscribe twice.
Callback Signature
void xxxxxxxxxxxxxxxxx (sender: object, product: Product);
Name | Type | Description |
sender | Object | The object associated with the changed property |
product | Product | The blocking product item |
Example:
function OnSimulationStart() { LogDebug("OnSimulationStart called"); SubscribeToEvent("OnProductBlocking","PESensor1","PE Sensor","handleproduct"); } ... function handleproduct(sender, product) { LogDebug("handleproduct:"); MoveProduct(product, "Conveyor2", 0.3); }
OnProductsOverlap
New in Sym3 V5.2. Invoked when the PESensor senses overlapping product. The event is triggered as the leading edge of the overlapping product breaks the PE beam.
Callback Signature
void xxxxxxxxxxxxxxxxx (sender: object, products: array);
Name | Type | Description |
sender | Object | The object associated with the changed property |
products array | Array | An array of blocking Product |
Example:
... SubscribeToEvent("OnProductsOverlap","PESensor1","PE Sensor","OnOverlap"); ... function OnOverlap(sender, units) { LogDebug("OnOverlap:"+sender.Name + ":" + units.length); PauseSimulation(); }